package tld.test.menu
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	import tld.test.menu.challenges.VideoPlayer;
	
	public class VideoTest extends Sprite
	{
		public function VideoTest()
		{
			super();
			if (super.stage) this.init();
			else super.addEventListener(Event.ADDED_TO_STAGE, this.init);
		}
		
		private function init(event:Event = null):void
		{
			super.removeEventListener(
				Event.ADDED_TO_STAGE, this.init);
			var video:VideoPlayer = new VideoPlayer();
			video.reset("../assets/20051210-w50s.flv");
			video.play();
			super.addChild(video);
		}
	}
}